<!DOCTYPE HTML>
<html>
	<head>
		<title>Contact Us</title>
        <link type = "image/x-icon" rel="SHORTCUT ICON" href="img/favicon.ico" />	
        <script type="text/javascript" src="jquery/jquery-1.7.1.min.js"></script>     
		<link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/grid-12.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript" language="javascript"></script>
	</head>
	<body>
		<div id="container" class="container_12">
		<?php
			include("inc/db.class.php");
			include("class/Product.class.php");
			require("php/header.php");
			include("inc/functions.php");
		?>
		<div id="line" class="grid_12"></div>
			<div id="" class="grid_12">
				<h3>Drop us a line</h3>
			    <div id="contact_us_box" class="">
				<div id=''>
				    <form id="formContactUs" action='addUpdateAnnouncement.php' method='post'>
					<!--Hidden Input Phone number -->
					<div id="contact_us_center">
					    <div class="message center"><?php  if(isset($_GET['m'])){if($_GET['m']=='s') echo "Thank you for writing to us. We will respond to you at the earliest."; if($_GET['m']=='f') echo 'Sorry! Message not sent'; }?></div>
					</div>
					<input id='number' name='usr_nmbr' type='hidden' value='' />
					<div class='inpt_pr_cvr'>
					    <span class='label_contact_us'>Your Name</span><br />
					    <input id='name' name='name' type='text' class='txt_bx_contact_us' value="<?php if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']){ echo $_SESSION['username'];} else echo "Name"; ?>" onFocus="if(this.value=='Name'){ this.value='';}" onBlur="if(this.value==''){ this.value='Name';}" />
					    <span id="name_error" class="error"></span>
					</div>
					<div class='inpt_pr_cvr'>
					    <span class='label_contact_us'>Your Email</span><br />
					    <input id='email' name='email' type='text' class='txt_bx_contact_us' value="<?php if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']){ echo $_SESSION['email'];} else echo "Email"; ?>" onFocus="if(this.value=='Email'){ this.value='';}" onBlur="if(this.value==''){ this.value='Email';}" />
					    <span id="email_error" class="error"></span>
					</div>

					<div  class='inpt_pr_cvr'>
					    <span class='label_contact_us'>Your Message</span><br />
					    <textarea id='message' name='message' class='txt_area_contact_us' maxlength='1000'  ></textarea><!--onkeyup='return maxlen(this)'-->
					    <br /><span id='message_error' class='error'></span>
					</div>
					<input id='submit_message' type='button' class='btn2' value='Send' />
					
				    </form>
				</div>
			    </div>
			</div>
						
			<?php require("php/footer.php"); ?>
		</div>
	</body>
</html>
